Skip to content

Limit the number of text input characters in the UI and the backend#411

Merged
janepie merged 4 commits intomainfrom
enh/noid/input-length-limit
Dec 2, 2025
Merged

Limit the number of text input characters in the UI and the backend#411
janepie merged 4 commits intomainfrom
enh/noid/input-length-limit

Conversation

@julien-nc
Copy link
Member

  • Reject new chat messages that are longer than 64K chars (in the backend)
  • Prevent submitting a new chat message if it's too long (in the UI)
  • Warn when text input field values are longer than 64K
  • Prevent submission when text (or list of texts) values are too long

…rs in the backend

Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
… in the UI

Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
…chars in the UI

Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
@julien-nc julien-nc requested a review from janepie December 2, 2025 11:26
@julien-nc julien-nc added enhancement New feature or request 3. to review labels Dec 2, 2025
…limit to 64K, break line in text input field length warning

Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
Copy link
Member

@janepie janepie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks and and works!

@janepie janepie merged commit 463da63 into main Dec 2, 2025
17 checks passed
@janepie janepie deleted the enh/noid/input-length-limit branch December 2, 2025 12:02
@janepie janepie mentioned this pull request Dec 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants